package com.platform.admin.controller;

import com.platform.admin.service.ISysUserService;
import com.platform.common.result.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "文件控制器API")
@RestController
@RequestMapping("/file")
@Slf4j
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class FileController {

  private final ISysUserService sysUserService;

  @ApiOperation("详情")
  @GetMapping("/export/list")
  public R<String> exportList(HttpServletResponse response) throws IOException {
    sysUserService.exportList(response);
    return R.ok();
  }
}
